package com.bubugao.search.controller;

import com.bubugao.search.dubbo.service.MemberAllCouponCnt;
import com.yunhou.business.money.ump.service.BizCouponService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DubboController {
    @DubboReference(url ="10.200.51.70:20884",version = "1.0.0",group = "business")
    BizCouponService bizCouponService;

    @GetMapping("hello")
    public String hello(Long id){
        MemberAllCouponCnt memberAllCouponCnt = bizCouponService.getMemberAllCouponCnt(id,null,"001",null);
        System.out.println(memberAllCouponCnt.getActivatedCnt());
        return "hello dubbo";
    }
}
